﻿using PRO.ORM;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace PRO.Permission.Entity
{
    [Entity(TableName="PermissionItem")]
    public class PermissionItem:BaseEntity
    {
        private int _ID = -1;
        /// <summary>
        /// 权限ID
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.Int,Len = 4,PrimaryKey = true)]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        private string _Permission;
        /// <summary>
        /// 权限唯一名称
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar,Len = 50)]
        public string Permission
        {
            get { return _Permission; }
            set { _Permission = value; }
        }
        private int _GroupID = -1;
        /// <summary>
        /// 权限对应分组
        /// </summary>
       [EntityAttribute(SqlDbType = SqlDbType.Int,Len = 4)]
        public int GroupID
        {
            get { return _GroupID; }
            set { _GroupID = value; }
        }
        private string _PermissionNote;
        /// <summary>
        /// 权限备注说明
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar,Len = 250)]
        public string PermissionNote
        {
            get { return _PermissionNote; }
            set { _PermissionNote = value; }
        }
    }
}
